package com.alibaba.csp.sentinel.dashboard.rule.apollo.config;

/**
 * ApolloProperties
 *
 * @author kancy
 * @date 2020/5/4 16:04
 */
public class ApolloProperties {
    /**
     * 地址
     */
    private String portalUrl;
    /**
     * token
     */
    private String token;
    /**
     * Apollo的appId
     */
    private String appId = "sentinel-dashboard";
    /**
     * Apollo环境
     */
    private String env = "";
    /**
     * 集群名称
     */
    private String clusterName = "default";
    /**
     * 数据更改创建者
     */
    private String dataChangeCreatedBy = "chenyin";
    /**
     * 连接超时时间
     */
    private int connectTimeout = -1;
    /**
     * 读超时时间
     */
    private int readTimeout = -1;
    /**
     * 流控规则数据ID
     */
    private String flowDataId = "sentinel-flow-rules";
    /**
     * 热点参数流控规则数据ID
     */
    private String paramFlowDataId = "sentinel-param-flow-rules";
    /**
     * 降级规则数据ID
     */
    private String degradeDataId = "sentinel-degrade-rules";
    /**
     * 系统规则数据ID
     */
    private String systemDataId = "sentinel-system-rules";
    /**
     * 授权规则数据ID
     */
    private String authorityDataId = "sentinel-authority-rules";
    /**
     * 网关流控规则数据ID后缀
     */
    private String gatewayFlowDataId = "sentinel-gateway-flow-rules";
    /**
     * 网关Api规则数据ID后缀
     */
    private String gatewayApiDataId = "sentinel-gateway-api-rules";

    public String getPortalUrl() {
        return portalUrl;
    }

    public void setPortalUrl(String portalUrl) {
        this.portalUrl = portalUrl;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public String getClusterName() {
        return clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }

    public String getDataChangeCreatedBy() {
        return dataChangeCreatedBy;
    }

    public void setDataChangeCreatedBy(String dataChangeCreatedBy) {
        this.dataChangeCreatedBy = dataChangeCreatedBy;
    }

    public int getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(int connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public int getReadTimeout() {
        return readTimeout;
    }

    public void setReadTimeout(int readTimeout) {
        this.readTimeout = readTimeout;
    }

    public String getFlowDataId() {
        return flowDataId;
    }

    public void setFlowDataId(String flowDataId) {
        this.flowDataId = flowDataId;
    }

    public String getParamFlowDataId() {
        return paramFlowDataId;
    }

    public void setParamFlowDataId(String paramFlowDataId) {
        this.paramFlowDataId = paramFlowDataId;
    }

    public String getDegradeDataId() {
        return degradeDataId;
    }

    public void setDegradeDataId(String degradeDataId) {
        this.degradeDataId = degradeDataId;
    }

    public String getSystemDataId() {
        return systemDataId;
    }

    public void setSystemDataId(String systemDataId) {
        this.systemDataId = systemDataId;
    }

    public String getAuthorityDataId() {
        return authorityDataId;
    }

    public void setAuthorityDataId(String authorityDataId) {
        this.authorityDataId = authorityDataId;
    }

    public String getGatewayFlowDataId() {
        return gatewayFlowDataId;
    }

    public void setGatewayFlowDataId(String gatewayFlowDataId) {
        this.gatewayFlowDataId = gatewayFlowDataId;
    }

    public String getGatewayApiDataId() {
        return gatewayApiDataId;
    }

    public void setGatewayApiDataId(String gatewayApiDataId) {
        this.gatewayApiDataId = gatewayApiDataId;
    }
}
